<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WebRtc</title>
</head>
<body>
    <video></video>
    <script>
        navigator.getUserMedia({
            video: true,
            audio: false
        }, stream => {
            console.log(stream);
            var video = document.querySelector('video');
            video.srcObject = stream;
            video.play();
        }, err => {
            console.log(err);
        })
    </script>
</body>
</html>